package com.zhentao.day02;

public class BookTest {
  public static void main(String[] args) {


    double price = Book.getPrice();  // 光标在方法上, 按CTRL+ALT + V , 自动生成数据类型及标识符。
    System.out.println("price = " + price);

    /*int [] arr = {1,2,3,4,5};
    // 4,3,2,1,0
    *//*for (int i = 0; i < arr.length; i++) {
      // 0,1,2,3,4

      System.out.println(arr[arr.length - 1-i]);

    }*//*

    for (int i = arr.length - 1; i >=0; i--) {
      System.out.println("arr[i] = " + arr[i]);
    }*/

    /*System.out.println(9);
    System.out.println(8);
    System.out.println(7);
    System.out.println(6);
    System.out.println(5);
    System.out.println(4);
    System.out.println(3);
    System.out.println(2);
    System.out.println(1);
    System.out.println(0);*/

    /*Book.LOCATION = "" ;// static 修饰的变量是通过 类名.静态变量名

    Book book = new Book() ;
    book.type = "修仙";   // 实例.变量名
    book.name = "诛仙";
    book.price = 5 ;

    System.out.println(book.type);
    System.out.println(book.name);
    System.out.println(book.price);*/

  }
}

// 默认修饰的普通类,
class Student {

}